using System;
using System.Collections;

namespace PMG.model
{
	#region TParaProvince

	/// <summary>
	/// TParaProvince object for NHibernate mapped table 'T_Para_Province'.
	/// </summary>
	[Serializable]
	public class TParaProvince
	{
		#region Member Variables
		
		protected int _id;
		protected string _province;
		protected string _region;

		#endregion

		#region Constructors

		public TParaProvince() { }

		public TParaProvince( string province, string region )
		{
			this._province = province;
			this._region = region;
		}

		#endregion

		#region Public Properties

		public int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public string Province
		{
			get { return _province; }
			set
			{
				if ( value != null && value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Province", value, value.ToString());
				_province = value;
			}
		}

		public string Region
		{
			get { return _region; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Region", value, value.ToString());
				_region = value;
			}
		}

		

		#endregion
	}
	#endregion
}